<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%
	/**
	 * 检查详情
	 */
	String examNo = input.getDesc("exam_no", "");
	Where where = new Where("exam_no=", examNo);
	if (hospital != 999)
		where.and("hospital=", hospital);
	List<Map> checkList = QBuilder.db("basedb").select("new map(patient_name as patient_name, exam_no as exam_no, name as name, part as part,created_time as check_time, card_number as card_number, branch_name as branch_name,report as report, doctor_name as doctor_name, result as result)").from("check_out").where(where).order("created_time", "desc").query().getResultObj();
	msg.put("data", checkList.size() == 0 ?Collections.emptyMap():checkList.get(0));
	Tools.encryptPrint(out, msg.toJson());
%>